/***
 * * PROJECT
 * *    ATaG
 * * VERSION
 * *    $Revision: 1.2 $
 * * DATE
 * *    $Date: 2008/10/07 12:57:36 $
 * * LOG
 * *    $Log: CATaGNode.java,v $
 * *    Revision 1.2  2008/10/07 12:57:36  animesh
 * *    removed GPL License [will re-add to all files later]
 * *
 * *    Revision 1.1  2007/06/01 20:53:21  animesh
 * *    bulk update.
 * *
 * *
 * *
 * *   ATaG (Abstract Task Graph) - Data-driven Macroprogramming for
 * *                                Sensor Networks
 * *
 ***/

package atag.compiler;

import atag.common.*;
import java.util.*;

/**
 * Node of the CATaG. Contains task and 'edges'
 */
public class CATaGNode{
    private ATaGTaskDeclaration task;
    private ArrayList<CATaGNode> feederList;
    private ArrayList<CATaGEdge> edgeList;
    
    public CATaGNode(){
    }
    
    public CATaGNode(ATaGTaskDeclaration newTask){
        this.task = newTask;
        this.edgeList = new ArrayList();
        this.feederList = new ArrayList();
    }
    
    public ATaGTaskDeclaration getTask(){ 
        return this.task; 
    }
    
    public ArrayList<CATaGNode> getFeederList(){
        return this.feederList;
    }
    
    public ArrayList<CATaGEdge> getEdgeList(){
        return this.edgeList;
    }
    
}
